package com.zh.ad.dao;

import com.zh.ad.entity.AdPlan;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author zhanghe
 * @create 2019-04-12 10:40
 */
public interface AdPlanRepository extends JpaRepository<AdPlan, Long> {
    AdPlan findByIdAndUserId(Long id, Long userId);

    List<AdPlan> findAllByIdAndUserId(List<Long> ids, Long userId);

    AdPlan findByUserIdAndPlanName(Long uerId, String planName);

    List<AdPlan> findAllByPlanStatus(Integer status);
}
